#define _CRT_SECURE_NO_WARNINGS 2
#include <stdio.h>


int main()
{
	int m = 0;
	scanf("%d\n", &m);
	int i = 0;
	int j = 0;
	for (i = 1; i <= m; i++)
	{
		for (j = 0; j <= m; j++)
			printf("%d*%d=%2d\n", i, j, i * j);
	}
	printf("\n");
	return 0;
}